package com.fzkj.str;

/**
 * @DESCRIPTION
 */
public class InternDemo {

    public static void main(String[] args) {
        String str = new StringBuilder("fangzai").append("keji").toString();
        System.out.println(str == str.intern());

        System.out.println();

        String str1 = new StringBuilder("ja").append("va").toString();
        System.out.println(str1 == str1.intern());
    }
}
